package com.dominator.repository;

import com.dominFramework.core.dao.SqlDao;
import com.dominFramework.core.typewrap.Dto;
import com.dominator.mybatis.dao.T_point_ticketDao;
import com.dominator.mybatis.dao.T_point_ticketPO;
import com.dominator.utils.dao.JdbcHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

@Repository
public class DaoPointTicket {

    @Autowired
    SqlDao sqlDao;

    @Autowired
    T_point_ticketDao t_point_ticketDao;

    @Resource
    JdbcHelper jh;

    /**
     * 添加
     *
     * @param
     * @return
     */
    public Integer batchInsert(List<Dto> list) {
        return sqlDao.insert("PointTicket.batchInsert",list);
    }

    /**
     * 更新
     * @param t_point_ticketPO
     * @return
     */
    public Integer update(T_point_ticketPO t_point_ticketPO){
        return t_point_ticketDao.updateByKey(t_point_ticketPO);
    }
}
